# if sourced in build tree, target "@PROJECT_NAME@" is available
# otherwise include exported targets from the Targets.cmake file
if(NOT TARGET @PROJECT_NAME@)
	include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
endif()

# transitively forward dependency to Qt
set(UseQt5 @UseQt5@)
if (UseQt5)
	find_package(Qt5 REQUIRED COMPONENTS Widgets Gui Core Network HINTS @Qt5_DIR@)
	set(QT_LIBRARIES Qt5::Core)
	set(QT_VERSION ${Qt5Core_VERSION})
else()
	find_package(Qt4 REQUIRED COMPONENTS QtGui QtCore QtNetwork)
	set(QT_VERSION ${QTVERSION})
endif()


if(NOT @PROJECT_NAME@_FIND_QUIETLY)
	message(STATUS "Found @PROJECT_NAME@: ${@PROJECT_NAME@_DIR}")
endif()
